#pragma once

#include <windows.h>
#include <tchar.h>
#include <d3dx9.h>
#include <vector>
#include <map>
#include <list>

struct DVertex
{
	float x,y,z,rhw;
	float u, v;
	DWORD dwColor;
	enum { FVF = D3DFVF_XYZRHW | D3DFVF_TEX1 };
};

template<class T> class DSingleton
{
public:
	static T* GetInstance()
	{
		static T inst;
		return &inst;
	}
protected:
	DSingleton() {  }
	virtual ~DSingleton() {}
};


